﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DreamBox.Admin.File
{
    public partial class FileClassAdd : BLL.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_Post_Click(object sender, EventArgs e)
        {
            Model.FileClass m = new Model.FileClass();
            m.CName = tbox_UCName.Text.Trim();
            m.Sort = int.Parse(tbox_Sort.Text.Trim());
            m.IsStatus = cbox_IsStatus.Checked;
            m.PostDate = DateTime.Now;

            DAL.MAction action = new DAL.MAction();
            if (action.Insert(m))
            {
                BLL.Admin.Tips.JsTips(this, "操作成功");
            }
        }
    }
}